<?php
/**
 * Created by yuxianjun001@icloud.com
 * User: yuxianjun
 * Date: 2018/3/13 0013
 * Time: 下午 5:16
 */

namespace App\Helpers;


class FileHelper
{
    public static function makeDir($path){
        if (!is_dir($path)) {
            $res = mkdir(iconv("UTF-8", "GBK", $path), 0777, true);
            if (!$res) {
                die('目录创建失败！');
            }
        }else{
            @chmod($path,0777);
        }
    }

}